package com.project.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 
 */
@TableName(value = "cms_shopping_cart")
@Data
@Table(name = "cms_shopping_cart", comment = "购物车")
public class CmsShoppingCart implements Serializable {
    /**
     * 购物车ID
     */
    @TableId
    @Column(type= MySqlTypeConstant.BIGINT, comment = "购物车ID", length = 11, isKey = true, isAutoIncrement = true,isNull = false)
    private Long cartId;

    /**
     * 用户ID
     */
    @Column(comment = "用户ID")
    private Long baseUserId;

    /**
     * 商品ID
     */
    @Column(comment = "商品ID")
    private Long productId;

    /**
     * 商品SKUID
     */
    @Column(comment = "商品SKUID")
    private Long skuId;

    /**
     * 购买数量
     */
    @Column(comment = "购买数量", defaultValue = "0")
    private Integer count;

    /**
     * 创建时间
     */
    @Column(comment = "创建时间", type = MySqlTypeConstant.DATETIME)
    private Date createTime;

    /**
     * 修改时间
     */
    @Column(comment = "修改时间", type = MySqlTypeConstant.TIMESTAMP)
    private Date updateTime;

    private static final long serialVersionUID = 1L;

}